<?php
namespace app\common\validate;

use think\Validate;

class SystemValidate extends Validate
{
    protected $rule =   [
        'appid|小程序appid'          => 'length:1,255',
        'appsecret|小程序appsecret'  => 'length:1,255',
        'mch_id|商户号'              => 'length:1,255',
        'wx_key|微信支付密钥'        => 'length:1,255',
        'push_award_fst|推荐奖(一)'  => 'require|length:1,255',
        'push_award_sec|推荐奖(二)'  => 'require|length:1,255',
    ];
    
    protected $scene = [
        /** admin */
        'edit'      => ['appid', 'appsecret', 'mch_id', 'wx_key', 'push_award_fst', 'push_award_sec'],
    ];
}